﻿namespace Yz.Base
{
    public struct FileTypeList
    {
        public static string[] ImgList = { ".jpg", ".jpeg", ".png", ".bmp", ".gif" }; //图片格式
        public static string[] DocList = { ".pdf", ".docx", ".doc" }; //文档格式
        public static string[] VdoList = { ".mp4", ".mov", ".rmvb", ".avi", ".flv" }; //视频格式  
        public static string[] RdoList = { ".mp3", ".wav" };
        public static string[] RarList = { ".zip", ".rar", ".7z" };
        public static string[] XlsList = { ".xls", ".xlsx" }; //文档格式 
        public static string[] DocPreviewList = { ".pdf", ".docx", ".xls", ".xlsx" };
    }

    /// <summary>
    ///     附件预览图地址
    /// </summary>
    public struct FileThPath
    {
        public const string Word = "/Content/images/thumbnails/word.png";
        public const string PDF = "/Content/images/thumbnails/pdf.png";
        public const string Vdo = "/Content/images/thumbnails/movie.png";
    }

    public struct ExcelSuffix
    {
        /// <summary>
        /// 03版本的xls
        /// </summary>
        public const string Xls = ".xls";
        /// <summary>
        /// 07及以上版本
        /// </summary>
        public const string Xlsx = ".xlsx";
    }
}
